/**
 * Copyright (C) 2011 KingCore Science & Technology CO,.LTD. All rights reserved.
 * XNS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/**
 * Copyright (C) 2002-2011 WUZEWEN. All rights reserved.
 * WUZEWEN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 * This software is the confidential and proprietary information of
 * WuZeven, Personal. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with WuZeven.
 */

package com.kingcore.director.base.ui;

import java.util.Observable;

import javax.swing.JFrame;

import wzw.util.I18nUtil;

import com.kingcore.director.main.Main;

/**
 * <p>The parent class for all Director Frame.</p>
 * @author Zeven on 2011-3-11
 * @version	1.0
 * @see		Object#equals(java.lang.Object)
 * @since	JDK5
 */

public abstract class DirectorFrame extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static final int StatusBar_Index_One = 0;
	public static final int StatusBar_Index_Two = 1;
	public static final int StatusBar_Index_Three = 2;
	public static final int StatusBar_Index_Four = 3;
	public static final int StatusBar_Index_Five= 4;
	public static final int StatusBar_Index_Six= 4;

	protected String trayIconOneTimeMsg = "click here or press["+Main.MainFrame_Shortcut_Key+"] to open.";
	protected String trayIconOpenMsg = "click here or press["+Main.MainFrame_Shortcut_Key+"] to open.";
	protected String trayIconDateMsg = "the 15th-Week";
	
	/**
	 * <p>java method describe</p>
	 * @author Zeven on 2011-3-11
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

//	public abstract StatusBar getStatusBar();
	
	protected String msgDialog_exitFromSystem	= null;
	protected String msgDialog_info = null;

	 /**
	  * 监听语言改变
	  */
	public void update(Observable o, Object arg) {
		
		//System.out.println(Locale.getDefault());
		//ResourceBundle bundle = I18nUtils.getBundle(DirectorConstants.I18n_Language_Name);

		this.trayIconOneTimeMsg = I18nUtil.getBundleString( DirectorFrame.class, "trayIconOneTimeMsg.Text");
		this.trayIconOpenMsg = I18nUtil.getBundleString( DirectorFrame.class, "trayIconOpenMsg.Text");
		this.trayIconDateMsg = I18nUtil.getBundleString( DirectorFrame.class, "trayIconDateMsg.Text");

		//注意：Message使用的是DirectorFrame的，Title使用的是DirectorPanel下面定义的
		this.msgDialog_exitFromSystem	= I18nUtil.getBundleString( DirectorFrame.class, "msgDialog_exitFromSystem.Message");
		this.msgDialog_info = I18nUtil.getBundleString( DirectorPanel.class, "msgDialog_info.Title");
	}
}
